package day8;

/**
 * @author oldliu
 * @since 1.0
 */
public class PrintThread3 extends Thread{

    public PrintThread3(String n){
        super(n);
    }
    @Override
    public void run() {
        for (int i = 1; i <=20 ; i++) {
            System.out.println(this.getName()+" print :"+i);
            Thread.yield();
        }
    }
}
